<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="pc/include :: header('专题')" />

    <link th:href="@{/js/ui-table/ui-table.css}" rel="stylesheet"/>
</head>
<body>
<th:block th:include="pc/include :: top" />
<div class="iw">
    <div class="crumbs">
        <p>当前位置：<a href="/">首页</a> > <a href="/topic.html">专题</a></p>
    </div>
    <div class="iw">
        <div class="topic-type">
            <ul>
                <li><a href=/topic.html?tid=0  th:classappend="${tid==0}?'active'">全部</a></li>
                <li th:each="item :${topic_type_array}" ><a th:href="@{/topic.html(tid=${item.typeid})}" th:classappend="${tid}==${item.typeid}?'active'" th:text="${item.typename}"></a></li>
                <li th:if="${topic}" class="last"><a href="/pub.html">创建我的专题</a></li>
            </ul>
        </div>
        <div class="topic-list">

                <ul th:each="item :${topic_array}">
                    <li><a th:href="@{/topic/{id}(id=${item.topicid})}"><img th:src="${item.cover}" /></a></li>
                    <li><h2><a href="#" th:text="${item.title}"></a></h2></li>
                    <li>
                        <span>分类 ：<i th:text="${item.typename}"></i></span>
                        <span>资源数 ：<i th:text="${item.docnum}"></i> 份</span>
                    </li>
                    <li>
                        <span>打包价 ：<i th:text="|${systradesets.glodname}${item.downpay}${systradesets.glodunit}|"></i></span>
                        <span>原总价 ：<s th:text="|${systradesets.glodname}${item.totalpay}${systradesets.glodunit}|"></s></span>
                    </li>
                    <li>
                        <span>创建人 : <a href="#" th:text="${item.nickname}"></a></span>
                        <span>创建时间 : <i th:text="${item.keyword}"></i></span>
                    </li>
                </ul>

        </div>
        <div class="pages"></div>
    </div>
</div>
<th:block th:include="pc/include :: footer" />
<script>
    $(".pages").html(CreatPage('[(${cpage})]', '[(${pagesize})]', '[(${total})]', "/topic.html?tid=[(${tid})]&pagenum={PageCurrent}&pagesize=2"));
</script>